import 'package:flutter/cupertino.dart';

void main() {
  //定义集合
  List<String> testList = ["张三", "李四"];

  //判断集合为空
  if (testList.isEmpty) {
    debugPrint("集合为空");
  }

  if (testList.isNotEmpty) {
    debugPrint("集合不为空");
  }

  if(testList.length==0){
    debugPrint("集合为空");
  }
}
